System.Threading.Tasks.Task`1[System.String]

Logging using console in a tabular form




In order to print any string or information to the console we generally use console.log().

Example

In some scenario we need to print an array or an individual object to the console. In those scenarios console.table() would be helpful. This would print the array or an object in a table format to the console.

Let???s see with an example:

In the above code, we had printed an array, array of arrays and an object to the console using console.table(). Now in the console the values will be printed in tabular format.


Most Read